package 第3节函数;

public class FunctionDemo03 {
    public static void main(String[] args) {
        int a = 1;
        int b = 2;
        int c = sum(a,b);
        int[] arr = new int[c];
        change(arr);
        System.out.println(arr[0]);
        return;
    }

    private static void change(int[] arr) {
        arr[0] = 666;
        return;
    }

    private static int sum(int a, int b) {
        a = 3;
        b = 4;
        return a + b;
    }
}
